﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lexer.SyntaxTree
{
    /// <summary>
    /// A node for dealing with a set statement.
    /// </summary>
   
    class SetSyntaxNode : SyntaxNode
    {
        private String varIdent;
        public String VariableName
        {
            get { return this.varIdent; }
            set { this.varIdent = value;  }
        }
        private BinaryOperationSyntaxNode binOp;
        

        public override string ToString()
        {
            return "Set: " + varIdent + " = " + this.binOp.ToString();
        }

        public BinaryOperationSyntaxNode Expr {
            get { return this.binOp; }
            set { this.binOp = value; }
        }
    }
}
